package cn.icatw.gulimall.seckill.feign;

import cn.icatw.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author icatw
 * @date 2022/4/5
 * @email 762188827@qq.com
 * @apiNote
 */
@FeignClient("gulimall-product")
public interface ProductFeignService {
    /**
     * 远程查询sku信息，用于封装秒杀商品信息
     *
     * @param skuId sku id
     * @return {@link R}
     */
    @RequestMapping("product/skuinfo/info/{skuId}")
    R getSkuInfo(@PathVariable("skuId") Long skuId);
}
